# -*- coding: utf-8 -*-
# @Time    : 2020-10-22 11:31
# @Author  : Leo
# @FileName: router.py
# @Software: PyCharm

from handlers.user.login_handler import LoginHandler
from handlers.user.wechat_handler import Wecahtlistener
from handlers.order.ordered_list_handler import OrderedListHandler
from handlers.order.handler import OrderHandler
from handlers.user.handler import UserHandler
from handlers.user.wechat_email_handler import WechatEmailHandler
from handlers.order.get_handler import GetOrderHandler

'''
AnyHungry 服务路由
'''

ROUTER = [
    (r'/api/v1/auth/login', LoginHandler), # 用户登录
    (r'/api/v1/user/(.*)', UserHandler), # 用户管理
    (r'/api/v1/wechat/(.*)', WechatEmailHandler), # 用户绑定微信
    # (r'/api/v1/test_user/orderedList', OrderedListHandler),     # 获取订餐用户信息
    (r'/api/v1/wechatListener', Wecahtlistener),  # 微信事件监听
    (r'/api/v1/order', OrderHandler), # 订餐管理
    (r'/api/v1/getOrder', GetOrderHandler),  # 根据登录名获取用户订餐信息
]